package game.game.network.server;

import java.util.HashMap;
import java.util.Map;

import entity.GameEntity;
import entity.map.IFieldMapEntity;

public class ServerModel implements IGameServerModel
{

	private Map<Integer, GameEntity> _objMap = null;

	private IFieldMapEntity _map;

	public ServerModel()
	{
		_objMap = new HashMap<Integer, GameEntity>();
		_map = null;
	}

	public void addObjEntity( Integer pId , GameEntity pObjEntity )
	{
		_objMap.put( pId , pObjEntity );
	}

	public GameEntity getObjEntity( Integer pIdPerso )
	{
		return _objMap.get( pIdPerso );
	}

	public void setMap( IFieldMapEntity pMap )
	{
		_map = pMap;
	}

	public IFieldMapEntity getMap()
	{
		return _map;
	}
}
